﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace InsuranceCompany.Core.Domain.InsuranceArea
{
    public class InsuranceRisk :InsuranceEntity
    {
        public string Name { get; set; }
        public string Description { get; set; }
        public Decimal Sum { get; set; }

        public InsuranceRisk() :base()
        {
            Name = "No name";
            Description = "Enter risk text";
            Sum = 0.0M;
        }

        public InsuranceRisk(InsuranceRisk ir)
            : base(ir)
        {
            Name = ir.Name;
            Description = ir.Description;
            Sum = ir.Sum;
        }

        public InsuranceRisk(string name, string description, Decimal sum)
            : base()
        {
            Name = name;
            Description = description;
            Sum = sum;
        }

        public InsuranceRisk(string name, string description, Decimal sum, string companyName)
            : base(companyName)
        {
            Name = name;
            Description = description;
            Sum = sum;
        }

        public InsuranceRisk(string name, string description, double sum)
            : base()
        {
            Name = name;
            Description = description;
            Sum = new Decimal(sum);
        }
    }
}
